from copy import copy

globalDict = {'selectJob':{},"upload": {}}

def setFessionMini(key,value):
    globalDict[key] = value

def getFessionMini(key):
    if hasInAndNN(key) == 1:
        return copy(globalDict[key])
    return None

def getFessionMiniAll():
    if globalDict is not None:
        return copy(globalDict)
    return []

def delAllFessionMini():
    globalDict = {}

def delFessionMini(key):
    if hasInAndNN(key) == 1:
        del globalDict[key]
    return None

def has_in(key):
    if key in globalDict:
        return 1
    return 0
def hasInAndNN(key):
    if key in globalDict and globalDict[key] is not None:
        return 1
    return 0